package com.kingint.mbg.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 工单前端返回实体类型
 */
@Data
public class WorkOrderFront implements Serializable {

    @ApiModelProperty(value = "酒店id")
    @TableField("hotel_id")
    private Integer hotelId;

    @ApiModelProperty(value = "房间id")
    @TableField("room_id")
    private Integer roomId;

    @ApiModelProperty(value = "房间号")
    @TableField("room_num")
    private String roomNum;

    @ApiModelProperty(value = "楼层id")
    @TableField("floor_id")
    private Integer floorId;

    @ApiModelProperty(value = "楼层名称")
    @TableField("floor_name")
    private String floorName;

    @ApiModelProperty(value = "对应工单的id")
    private Integer billId;

    @ApiModelProperty(value = "对应总单id")
    @TableField("work_id")
    private Integer workId;

    @ApiModelProperty(value = "相关内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("标题名称")
    @TableField("title")
    private String title;

    @ApiModelProperty("提交人id")
    @TableField("submit_user_id")
    private Long submitUserId;

    @ApiModelProperty("提交人名称")
    @TableField(exist = false)
    private String submitUserName;

    @ApiModelProperty("工单类型id")
    @TableField(exist = false)
    private Integer workTypeId;

    @ApiModelProperty("工单类型名称")
    @TableField(exist = false)
    private String workTypeName;


    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("对应的工单状态（1,未指派(未接单)，2,处理中，3，待验收，4.挂起，5，完成，6，待确认（服务工单人员确认））")
    @TableField("order_status")
    private Integer orderStatus=0;

    @ApiModelProperty("赶房限时状态，首页显示赶房接单倒计时")
    @TableField(exist = false)
    private Integer isSync;

    @TableField(exist = false)
    @ApiModelProperty("回复状态")
    private Integer reply=0;
}
